<?php

namespace backend\assets;

use yii\web\AssetBundle;

/*
**Team :
**Coding by 曾钰媛 1511240 170703
**This is the Main backend application asset bundle.
*/
class AppAsset1 extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web/statics';
    public $css = [
        //'css/site.css',
		"assets/css/bootstrap.css",
        "assets/css/font-awesome.css",
        "assets/js/morris/morris-0.4.3.min.css",
		"assets/css/custom-styles.css",
    ];
    public $js = [
	    "assets/js/jquery-1.10.2.js",
		"assets/js/bootstrap.min.js",
        "assets/js/jquery.metisMenu.js",
        "assets/js/morris/raphael-2.1.0.min.js",
        "assets/js/morris/morris.js",
		"assets/js/easypiechart.js",
	    "assets/js/easypiechart-data.js",
        "assets/js/custom-scripts.js",
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
    ];
	 public static function addScript($view, $jsfile)
    {
        $view->registerJsFile($jsfile, [AppAsset1::className(), 'depends' => 'backend\assets\AppAsset']);
    
    }
    
    public static function addCss($view, $cssfile)
    {
        $view->registerCssFile($cssfile, [AppAsset1::className(), 'depends' => 'backend\assets\AppAsset']);
    }
}
